import request from '../uniHttp';

// 添加用户/注册用户
export const createUser = async (data?: object|any) => {
  return await request('/user/createUser', 'post', data);
}

// 登录
export const login = async (data?: object|any) => {
  return await request('/user/login', 'post', data);
}

// 微信登录
export const wx = async (data?: object|any) => {
  return await request('/user/wx', 'post', data);
}

// 微信扫码地址
export const wechatQr = async (id?: string|number) => {
  return await request('/user/wechatQr', 'get', id);
}

// QQ登录
export const qq = async (id?: string|number) => {
  return await request('/user/qq', 'get', id);
}
